using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Clanta.Core.DataInterfaces;

namespace Clanta.Web.Controls
{
    public class BaseUserControl : UserControl
    {
        /// <summary>
        /// Exposes accessor for the <see cref="IDaoFactory" /> used by all user controls.
        /// </summary>
        public IDaoFactory DaoFactory
        {
            get
            {
                return (IDaoFactory)CustomHttpApplication.WindsorContainer[typeof(IDaoFactory)];
            }
        }
    }
}
